<template>
  <li class="item" @click='handleClick'>{{content}}</li>
</template>

<script>
export default {
  props: ['content', 'index'],
  methods: {
    handleClick () {
      this.$emit('delete', this.index)
    }
  }
}
</script>

<style scoped>
  .item{
    list-style: none;
    text-align: left;
  }
  .item:hover{
    text-decoration:line-through;
    background-color: #b9b5b5;
    color: #fff;
  }
</style>
